package com.topgay.domain;

import java.io.Serializable;

public class AnswerForInsert implements Serializable{
	private String id;
	private String nickName;
	private int surveyNo;
	private int surveyAnswer;
	
	public AnswerForInsert(){}

	public AnswerForInsert(String id, String nickName, int surveyNo, int surveyAnswer) {
		super();
		this.id = id;
		this.nickName = nickName;
		this.surveyNo = surveyNo;
		this.surveyAnswer = surveyAnswer;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public int getSurveyNo() {
		return surveyNo;
	}

	public void setSurveyNo(int surveyNo) {
		this.surveyNo = surveyNo;
	}

	public int getSurveyAnswer() {
		return surveyAnswer;
	}

	public void setSurveyAnswer(int surveyAnswer) {
		this.surveyAnswer = surveyAnswer;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((nickName == null) ? 0 : nickName.hashCode());
		result = prime * result + surveyAnswer;
		result = prime * result + surveyNo;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AnswerForInsert other = (AnswerForInsert) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (nickName == null) {
			if (other.nickName != null)
				return false;
		} else if (!nickName.equals(other.nickName))
			return false;
		if (surveyAnswer != other.surveyAnswer)
			return false;
		if (surveyNo != other.surveyNo)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "AnswerForInsert [id=" + id + ", nickName=" + nickName + ", surveyNo=" + surveyNo + ", surveyAnswer="
				+ surveyAnswer + "]";
	}
	
	
	
}
